<template>
  <div class="left-section">
    <div class="scroll-container">
      <div class="content-wrapper">
        <slot></slot>
        <div style="height: 50px;"></div>
      </div>
    </div>
  </div>
</template>

<style lang="scss" scoped>
.left-section {
  width: 420px;
  height: 100%;
  background: linear-gradient(90deg, rgba(13, 19, 35, 0.8) 0%, rgba(13, 19, 35, 0.4) 80%,rgba(0, 0, 0, 0) 100%);
  
  .scroll-container {
    height: 100%;
    direction: rtl;
    overflow-y: scroll;
    overflow-x: hidden;
  }

  .content-wrapper {
    direction: ltr;
    padding: 16px;
  }
}

.glass-panel {
  background: rgba(13, 19, 35, 0.4);
  border-radius: 4px;
  border: 1px solid rgba(63, 158, 255, 0.1);
  padding: 15px;
  margin-bottom: 15px;
  position: relative;
  overflow: hidden;

  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
      rgba(63, 158, 255, 0) 0%,
      rgba(63, 158, 255, 0.3) 50%,
      rgba(63, 158, 255, 0) 100%
    );
  }

  &::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
      rgba(63, 158, 255, 0) 0%,
      rgba(63, 158, 255, 0.3) 50%,
      rgba(63, 158, 255, 0) 100%
    );
  }
}

.weather-section {
  .weather-actions {
    display: flex;
    justify-content: center;
    gap: 10px;

    .glass-button {
      background: rgba(63, 158, 255, 0.1);
      border: 1px solid rgba(63, 158, 255, 0.2);
      color: rgba(255, 255, 255, 0.8);
      
      &:hover {
        background: rgba(63, 158, 255, 0.2);
        border-color: rgba(63, 158, 255, 0.3);
      }
    }
  }
}

.section-header {
  color: rgba(255,255,255,0.9);
  font-size: 16px;
  margin-bottom: 15px;
  padding-left: 10px;
  border-left: 3px solid #3f9eff;
}

.water-data {
  .data-group {
    margin-bottom: 15px;
    background: rgba(63, 158, 255, 0.05);
    padding: 10px;
    border-radius: 4px;
    
    .data-label {
      color: rgba(255,255,255,0.7);
      font-size: 14px;
      margin-bottom: 8px;
    }
    
    .data-value {
      font-size: 24px;
      font-weight: 500;
      
      .unit {
        font-size: 14px;
        opacity: 0.8;
        margin-left: 4px;
      }
    }
  }
}

.history-data {
  margin-top: 15px;
  
  .history-header {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    margin-bottom: 10px;
  }
  
  .history-grid {
    display: grid;
    gap: 8px;
    
    .history-item {
      display: flex;
      justify-content: space-between;
      color: rgba(255,255,255,0.6);
      font-size: 14px;
      
      .value {
        color: #3f9eff;
      }
    }
  }
}

.command-data {
  .command-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    
    .value {
      color: #3f9eff;
    }
  }
}

.highlight {
  color: #3f9eff;
  text-shadow: 0 0 10px rgba(63, 158, 255, 0.5);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.8; }
  100% { opacity: 1; }
}
</style> 